import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:"/home",
    name: 'app',
    component: () => import('../App.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/HomeView.vue')
  },
  {
    path: '/destination',
    name: 'destination',
    component: () => import(/* webpackChunkName: "about" */ '../views/destination.vue')
  },
  {
    path:'/login',
    name:'login',
    component:()=>import('../views/Login.vue')
  },
  {
    path:'/regist',
    name:'regist',
    component:()=>import('../views/Regist.vue')
  },
  {
    path:'/strategyIndex',
    name:'strategyIndex',
    component:()=>import('../views/StrategyIndex.vue'),
  },
  {
    path:'/travelIndex',
    name:'travelIndex',
    component:()=>import('../views/TravelIndex.vue'),
  },
  {
    path:'/strategyDetail',
    name:'strategyDetail',
    component:()=>import('../views/StrategyDetail.vue')
  },
  {
    path:'/traveldetail',
    name:'traveldetail',
    component:()=>import('../views/TravelDetail.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
